<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no">
    <title>注册</title>
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/css/signin.css}" rel="stylesheet">
</head>
<body class="text-center">
<form class="form-signin" th:action="@{/toRegister}" method="post">
    <img th:src="@{/img/login.png}" class="mb-4" width="72" height="72">
    <h1 class="h3 mb-3 font-weight-normal">请注册</h1>
    <input class="form-control" type="text" name="name" placeholder="请填写姓名" required onfocus="">
    请选择身份类型
    <select class="form-control" name="valid" style="height: calc(3.25rem + 2px);" required>
        <option value="" selected>---请选择---</option>
        <option value="2">员工</option>
        <option value="3">顾客</option>
        <option value="1">管理员</option>
    </select>
    <input class="form-control" type="text" name="num" placeholder="请输入账号" required onfocus="">
    <input class="form-control" type="password" name="password1" placeholder="请输入密码" required>
    <input class="form-control" type="password" name="password2" placeholder="请确认密码" required>
    <div id="result" th:text="${result}"></div>
    <button class="btn btn-lg btn-primary btn-block" type="submit">注册</button>
    <a th:href="@{/user/login}" style="position: absolute; margin-top: -25px; right: 18px; color: #0066ff;">返回登录</a>
</form>
</body>
</html>